"""
__project__ = 'thc'
__file_name__ = 'tset_1'
__author__ = 'thc'
__time__ = '2020/12/26 11:03'
__product_name = PyCharm
-*- coding:utf-8 -*-
"""


import unittest
from unittest_01.calculator import Math


# class Test_add(unittest.TestCase):
#
#     @classmethod
#     def setUpClass(cls):
#         print('setUpClass')
#
#     def setUp(self):
#         print('setUp')
#
#     def test_add(self):
#         j = Math(1, 2)
#         self.assertEqual(j.add(), 3)
#
#     def test_add1(self):
#         j = Math(2, 3)
#         self.assertEqual(j.add(), 5)
#
#     def tearDown(self):
#         print('tearDown')
#
#     @classmethod
#     def tearDownClass(cls):
#         print('tearDownClass')


# if __name__ == '__main__':
#     suite = unittest.TestSuite()
#     suite.addTest(Test_add('test_add'))
#     suite.addTest(Test_add('test_add1'))
#     runner = unittest.TextTestRunner()
#     runner.run(suite)


# dir_name = './'
# discovery = unittest.defaultTestLoader.discover(dir_name, pattern='test*.py')
# if __name__ == '__main__':
#     runner = unittest.TextTestRunner()
#     runner.run(discovery)
#
#
#
#
# assertEqual    =
# assertNotEqual  !=
#
# assertTrue
# assertFalse
#
# assertIs
# assertIsNot
#
# assertIn
# assertNotIn
#
# assertNone
# assertNotNone
#
# assertIsInstance
# assertNotIsInstance
#



